<template>
  <el-menu
    :default-active="'/index'"
    router
    mode="horizontal"
    background-color="white"
    text-color="#222"
    active-text-color="red"
    style="min-width: 1300px">
    <el-menu-item v-for="(item,i) in navList" :key="i" :index="item.path">
      {{ item.navItem }}
    </el-menu-item>
    <span style="position: absolute;padding-top: 20px;right: 43%;font-size: 20px;font-weight: bold">汽车售后维修管理</span>
  </el-menu>
</template>

<script>
export default {
  name: 'NavMenu',
  data() {
    return {
      navList: [
        {path: '/index', navItem: '首页'},
        {path: '/user_login', navItem: '用户登录'},
        {path: 'Login', navItem: '管理中心'},
      ]
    }
  }
}
</script>

<style scoped>
.el-icon-switch-button {
  cursor: pointer;
  outline: 0;
}

a {
  text-decoration: none;
}

span {
  pointer-events: none;
}
</style>

